package com.aatrox.bhsypro.dao;

import com.aatrox.bhsypro.entity.BScolumn;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
@Mapper
//@Repository
public interface BScolumnDao {

    //添加专栏
    public void insertNewZl(BScolumn bs);
    //查询专栏
    public BScolumn selScolumn(HashMap hm);
    //查询专栏所有内容
    public List<BScolumn> selallScolum();
    //查询最新的10条数据
    public List selScolumby10();
//    条件查询
    public List selallbystay(String stay);
//    条件查询
    public List selbysname(String sname);
//    修改点赞数量
    public int upbysid(int sid);
}
